part of "../basic.dart";

extension DoubleFormatting on double {
  /// 丢弃多余的位数信息，将double简化成特定位数
  /// 简化采用四舍五入的原则
  double cut(int digits) => double.parse(toStringAsFixed(digits));
}
